package observer.api;

import observer.ChangeMessage;

import java.util.Observable;

public class WeatherSubject extends Observable {
    private ChangeMessage message;

    public void changeMessage(ChangeMessage message) {
        this.message = message;
        this.setChanged();
        this.notifyObservers(message);
    }
}
